package com.xyt.imei.core.service;

import java.util.List;

import com.luminary.common.framework.core.model.Pagination;
import com.luminary.common.framework.service.GenericService;
import com.xyt.imei.core.model.po.Task;
import com.xyt.imei.core.model.po.TaskDetail;

public interface TaskService extends GenericService<Task, Integer>{

	Pagination<TaskDetail> findSuccessByPage(Pagination<TaskDetail> pagination) throws Exception;
	
	Pagination<TaskDetail> findFailureByPage(Pagination<TaskDetail> pagination) throws Exception;
	
	boolean addTask(Task task, List<TaskDetail> taskDetailList, int targetId) throws Exception;
	
}
